const CheckPerfect = (axios, Url) => {
  var Object = {}
  /*p1:sessionId=》登录保存的sessionid;*/
  Object.CheckPerfect = (sessionId) => {
      return axios({
        method: 'get',
        url: Url.UserInfo + '?sessionId=' + sessionId,
      })
    },
    /*p1:sessionId=》登录保存的sessionid; 
     *p2:parent['id']=》家长的id	 
     *p3:parent['media_id']=》家长的照片的media_id,不用上传的时候传个空的数值过来  
     *p4:child[0]['id']=》第一个孩子的id 	
     *p5:child[0]['media_id']=》第一个孩子的照片media_id,不用上传的时候传个空的数值过来 (几个孩子就有几个id和照片)*/
    Object.Confirm = (DataInfo) => {
      return axios({
        method: 'POST',
        url: Url.Confirm,
        data: DataInfo
      })
    },
    Object.SetPwd = (sessionId,payMessage) => {
      return axios({
        method: 'POST',
        url: Url.SetPwd,
        data: {sessionId:sessionId,pay_verify_pass:payMessage}
      })
    }

  return Object
}
export default CheckPerfect
